<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BalanceDetail extends Model
{
    //是否有效
    const INVALID = 0;
    const VALID = 1;

    public function scopeValid($query)
    {
        $query->where('is_valid', self::VALID);
    }
}
